A Bar chart customised to look like a VProgress bar
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var data = [68];
var bar = new RGraph.Bar({
id: 'cvs',
data: data,
options: {
ymax: 100,
noxaxis: true,
labels: ['Engine output'],
labelsAbove: true,
unitsPost: '%',
colors: ['gradient(red:white)'],
backgroundGrid: false,
gutterLeft: 55,
gutterRight: 5,
strokestyle: 'rgba(0,0,0,0)',
textAccessible: true
}
}).draw();
};
</script>